/*
 *@Description: 字典模型
 *@Author: panlua
 *@Date: 2019-05-22 16:12:42
*/
const mongoose = require('mongoose')
const Schema = mongoose.Schema

const dicSchema = new Schema({
  dicType: { // 字典类型
    type: String,
    required: true
  },
  value: { // 枚举值
    type: Number,
    required: true
  },
  label: { // 显示名称
    type: String,
    required: true
  },
  description: { // 描述
    type: String,
    required: true
  },
  status: { // 启用状态  true：启用 false：禁用
    type: Boolean,
    required: true
  }
})

module.exports = mongoose.model('Dic', dicSchema, 'dic')